<?php
/**
 * Page Template
 *
 * Loaded automatically by index.php?main_page=testimonials.<br />
 * Displays conditions page.
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_testimonials_default.php  v1.3 $
 */
?>
<div class="minframe fl">
<?php
 //require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/box_contact_us.php'));
 require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/ezpages.php'));
 require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/'.$template_dir.'/subscribe.php'));
?>
</div>
<div class="right_big_con margin_t" id="testimonials">
<h1 class="static_h1  border_b"><?php echo HEADING_TITLE; ?></h1></ul>
<p class="margin_t" style="font-size:12px;" >You can click and check below Tracking number at official shipping website, You will check where the parcels have been delivered by our company recently.</p>


<div id="testimonialsMainContent" class="content">
<table width="755" cellspacing="0" cellpadding="0" border="0" align="center">
	<tbody><tr>
		<td width="10" style="background: none repeat scroll 0% 0% rgb(231, 231, 231);" class="b big3 g_t_c line_30px black border_b"></td>
		<td width="200" style="background: none repeat scroll 0% 0% rgb(231, 231, 231);" class="b big3 g_t_c line_30px black border_b"> Tracking Numbe</td>
		<td width="100" style="background: none repeat scroll 0% 0% rgb(231, 231, 231);" class="b big3 g_t_c line_30px black border_b">Country</td>
		<td width="100" style="background: none repeat scroll 0% 0% rgb(231, 231, 231);" class="b big3 g_t_c line_30px black border_b">Shipping Method</td>
		<td width="200" style="background: none repeat scroll 0% 0% rgb(231, 231, 231);" class="b big3 g_t_c line_30px black border_b">Deliverd Date</td>
		<td width="10" style="background: none repeat scroll 0% 0% rgb(231, 231, 231);" class="b big3 g_t_c line_30px black border_b"></td>
	</tr>
<?php
  if ($track_shipment_split->number_of_rows > 0) {
    $track_shipments = $db->Execute($track_shipment_split->sql_query);
    $row=0;
    while (!$track_shipments->EOF) {
?>
    <tr>
	  <td>&nbsp;</td>
	  <td valign="top" style="padding: 5px 0px; text-align: center;" class="border_b">
	  <?php 
		if($track_shipments->fields['shipping_method'] =="EMS"){
	  ?>
		<a href="http://www.ems.com.cn/english-main.jsp" target="_blank"><?php echo $track_shipments->fields['track_number']; ?></a>
	  <?php
		}elseif($track_shipments->fields['shipping_method'] =="TNT"){
	  ?>
		<a href="http://www.tnt.com" target="_blank"><?php echo $track_shipments->fields['track_number']; ?></a>
	  <?php
		}elseif($track_shipments->fields['shipping_method'] =="UPS"){
	  ?>
	  <a href="http://www.ups.com" target="_blank"><?php echo $track_shipments->fields['track_number']; ?></a>
	   <?php
		}elseif($track_shipments->fields['shipping_method'] =="DHL"){
	  ?>
	  <a href="http://www.dhl.com/en.html" target="_blank"><?php echo $track_shipments->fields['track_number']; ?>		</a>
	  <?php
	  }else{
	  
	  ?>
	  <a href="http://www.ems.com.cn/english-main.jsp" target="_blank"><?php echo $track_shipments->fields['track_number']; ?></a>
	  <?php
	  }
	  ?>
	  </td>
	  <td class="border_b pad_5px big" style="text-align: center;"><?php echo $track_shipments->fields['country']; ?></td>
	  <td style="text-align: center;" class="border_b"><?php echo $track_shipments->fields['shipping_method']; ?></td>
	  <td style="text-align: center;" class="border_b"><span style="text-align: center;" class="border_b big"><?php echo zen_date_short($track_shipments->fields['deliverd_date']); ?></span></td>
	  <td>&nbsp;</td>
    </tr>
<?php
      $row++;
      $track_shipments->MoveNext();
    }
?>


<script>
 //marquee(3000,70,0,'recentlyorder');
 new srcMarquee("trackshipment",0,2,180,210,30,3000,3000,70)
</script>
	<tr>
		<td height="20" colspan="7"></td>
	</tr>
</tbody></table>
<?php
  } else {
?>
		<div id="reviewsDefaultNoReviews" class="content"><?php echo TEXT_NO_REVIEWS; ?></div>
<?php
  }
?>


</div>
</div>
